package com.ftg.product.exam.vo;

import com.diboot.core.binding.annotation.*;
import com.ftg.product.exam.entity.SysEmployee;
import com.ftg.product.exam.entity.SysOrganizations;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 1.3 员工信息(名称、性别、所在部门、职务、邮箱、手机号、岗位) DetailVO定义
* @author kangjx
* @version 1.0
* @date 2021-01-15
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class SysEmployeeDetailVO extends SysEmployee  {
    private static final long serialVersionUID = -9096876006931431993L;

    /**
    * 关联字典：SEX
    */
    @BindDict(type=DICT_SEX, field="empsexcode")
    private String empsexcodeLabel;

    /**
    * 关联字典：POST
    */
    @BindDict(type=DICT_POST, field="emppostcode")
    private String emppostcodeLabel;

    /**
    * 关联字典：JOB
    */
    @BindDict(type=DICT_JOB, field="empjobcode")
    private String empjobcodeLabel;

    /**
    * 关联字段：SysOrganizations.orgname
    */
    @BindField(entity = SysOrganizations.class, field = "orgname", condition = "this.emporgcode=id")
    private String emporgcodeOrgname;

}